/*
** sh.h for 42sh in /home/guina_b/
** 
** Made by benoit guina
** Login   <guina_b@epitech.net>
** 
** Started on  Fri Jan 01 00:00:00 2010 benoit guina
** Last update Fri Jan 01 00:00:00 2010 benoit guina
*/

#ifndef H_SH
#define H_SH

struct s_term;
struct s_env;
struct s_jobmgr;

typedef struct s_sh
{
  struct s_term *term;
  struct s_env *env;
  struct s_jobmgr *jobmgr;
  int exit_status;
} t_sh;

int sh_init(t_sh *sh, char **env);
void sh_free(t_sh *sh);
int sh_run(t_sh *sh, char *arg_input);

#endif
